package com.xjgc.common;

import lombok.Data;

import java.util.Map;

@Data
public class ResultVO<T> {

    private ResultEnum result;

    private T data;

    public static ResultVO getFailedInstance(){
        ResultVO<String> vo = new ResultVO<>();
        vo.setResult(ResultEnum.SUCCESS);
        vo.setData(ResultEnum.FAILED.getDes());
        return vo;
    }

}
